package com.zjj.day2.test5;
/**
 * @author zhoujunjie
 * @desc TODO
 * @date 2025/4/18
 */
class Equip {
    private String name;
    private int level;
    private String color;
    private String kind;
    private int power;
    private int defence;

    public Equip(String name, int level, String color, String kind, int power, int defence) {
        this.name = name;
        this.level = level;
        this.color = color;
        this.kind = kind;
        this.power = power;
        this.defence = defence;
    }

    public void show() {
        System.out.println("装备名称：" + name);
        System.out.println("装备级别：" + level);
        System.out.println("装备颜色：" + color);
        System.out.println("装备类别：" + kind);
        System.out.println("攻击力：" + power);
        System.out.println("防御力：" + defence);
    }

    public int getPower() {
        return power;
    }

    public int getDefence() {
        return defence;
    }

    public String getName() {
        return name;
    }
}